# -*- coding: utf-8 -*-
"""
2024-02-12 
main
"""
"""


from PySide6.QtWidgets import QApplication, QWidget

app = QApplication([])

# 创建一个QWidget实例
widget = QWidget()

# 设置窗口标题
widget.setWindowTitle('My First QWidget')

# 设置窗口大小
widget.setGeometry(100, 100, 300, 200)

# 显示窗口
widget.show()

# 运行应用程序的主事件循环
"""
from PySide6.QtCore import Slot, QSize
from PySide6.QtGui import QAction, QKeySequence
from PySide6.QtWidgets import QMainWindow, QApplication, QVBoxLayout, QHBoxLayout, QPushButton, QWidget, QMessageBox
from PySide6.QtCore import Qt
from PySide6.QtGui import QGuiApplication, QCloseEvent
## from PySide6.QtCore.Qt import 

##from PySide6.QtCore import WindowState

##from top.wardyan.utils import winformutils
from top.wardyan.core.action.baseaction import WMainWindow
from top.wardyan.core.widges.tables import WTableView
from top.wardyan.core.vo.vos import Record, TableCfg, TableColCfg




import os

# import rpyc

# cn = rpyc.connect("127.0.0.1", 8899)
# print("time is {}".format(cn.root.get_time()))
# print(cn.root.script_list())
from top.wardyan.core.wdb.ui.dbconfigwindow import *




class DBConfigMainWindow(WMainWindow):

    table : WTableView = None
    def __init__(self, name : str = __name__):
        WMainWindow.__init__(self, "dbconfigwindow")
        ## 显示窗体具体信息
        self.main()

        self.setCentralWidget(DBConfigWindow())
    

    def initMenubar(self) :
        HEIGHT = 50
        

    
    def main(self) :
        self.initMenubar()

        

if __name__ == "__main__" :     ## or 1 == 1
    app = QApplication([])
    w = DBConfigMainWindow()
    ## w = WScriptWindow()
    w.show()
    app.exec()